<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title  >
</head>
<body>
    <script>
        var arr=[65,89,76,56,90,99,80,60,98,44];
        var sum = 0;
        for(var i = 0;i<arr.length;i++){
            sum += arr[i];
        }
        // console.log(sum);
            var average = sum / arr.length;
            var count = 0;
        for(var i = 0;i <= arr.length;i++){    
            if (arr[i] >= average){  
                count++;
            }
        }
        console.log("大于等于平均成绩的人数为" + count + "个" ) ;

    </script>
</body>